var app = getApp()
var req = require('../../utils/reqUtils.js')
Page( {
  data: {
    aritcle: {},
  },
  onLoad: function (options) {
    var that = this
    let object=JSON.parse(options.artype);
    console.log(object)
    that.setData ({
       aritcle: object
    })

  },
  getLocation:function(){
    wx.navigateTo({
      url:'../location/location'
    })
  },
  bookTap:function(e){
    var str = JSON.stringify(e.currentTarget.dataset.unit)
    wx.navigateTo({
      url:'../book/book?unit=' + str
    })
  }
})